﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1.Servicve
{
    public interface IData
    {

        string Name { get; set; }
    }

    public class Data: IData
    {

        public string Name { get; set; }
    }
    public interface IAnimal
    {
        void Show(string name);
        string Id { get; set; }
    }
    public class Tiger : IAnimal
    {
        private string _Id;
        public string Id { get { return this._Id; } set { Id = this._Id; } }

        private IAnimal2 _dog;
        private IData _data { get; set; }

     //   private IConvertFileFactory _convertFileFactory;
        public Tiger(IData data, IAnimal2 dog)//,IConvertFileFactory convertFileFactory
        {
         //   _convertFileFactory = convertFileFactory;   
            _data = data;
            _Id = Guid.NewGuid().ToString();
            _dog = dog;
        }

        public void Show(string name)
        {
           // var res = _convertFileFactory;
           // _data.Name = "我是老虎aa";
            _dog.Show("1");
            Console.WriteLine("老虎说：" + name);
        }
    }
    
}